

    \filetitle{str2dat}{Convert strings to IRIS serial date numbers}{dates/str2dat}

	\paragraph{Syntax}\label{syntax}

\begin{verbatim}
Dat = str2dat(S,...)
\end{verbatim}

\paragraph{Input arguments}\label{input-arguments}

\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
  \texttt{S} {[} char \textbar{} cellstr {]} - Strings representing
  dates.
\end{itemize}

\paragraph{Output arguments}\label{output-arguments}

\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
  \texttt{Dat} {[} numeric {]} - IRIS serial date numbers.
\end{itemize}

\paragraph{Options}\label{options}

\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
  \texttt{'freq='} {[} \texttt{1} \textbar{} \texttt{2} \textbar{}
  \texttt{4} \textbar{} \texttt{6} \textbar{} \texttt{12} \textbar{}
  \texttt{52} \textbar{} \texttt{365} \textbar{} \emph{empty} {]} -
  Enforce frequency.
\end{itemize}

See help on \href{dates/dat2str}{\texttt{dat2str}} for other options
available.

\paragraph{Description}\label{description}

\paragraph{Example}\label{example}

\begin{verbatim}
d = str2dat('04-2010','dateFormat=','MM-YYYY');
dat2str(d)
ans =
   '2010M04'

d = str2dat('04-2010','dateFormat=','MM-YYYY','freq=',4);
dat2str(d)
ans =
   '2010Q2'
\end{verbatim}


